Preprocessing C + + : Substitution and Composition

نویسندگان

  • Edward D. Willink
  • Vyacheslav B. Muchnick
چکیده

Problems with the lexical substitution mechanism of the C preprocessor are well known. We resolve these problems with a new syntax-based substitution mechanism for C++ based on meta-variables and metafunctions. Implementation of these meta-concepts in a C++ style leads naturally to meta-expressions and then meta-statements and a generalisation of C++ syntax. We show how meta-compilation renders the C preprocessor redundant, and offers a more intuitive and powerful programming language in which pattern solutions can be provided and Aspect-Oriented programming practiced. In a companion paper [21] we go one stage further, putting the concepts together in the context of meta-classes where meta-programming and reflection are supported at compile-time.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Milk Production and Composition, and Intake of Holstein Lactating Cows Fed Diets with Partial Substitution of Soybean Meal with Flaked Field Pea

The objective of this study was to investigate the effect of a partial substitution of soybean meal with field pea (Pisum sativum) in Holstein lactating dairy cow diets on dry matter intake, milk yield and composition, blood metabolites, rumen ammonia-N concentration and pH. Eighteen lactating Holstein cows were randomly assigned into three groups based on parity, days in milk, and mil...

متن کامل

Joint Analysis of the DGAT1, OPN and PPARGC1A Genes Effects on Variation of Milk Production and Composition in Holstein Cattle Population

The aim of this study was to investigate effects of DGAT1, OPN and PPARGC1A candidate genes on milk production traits in Iranian Holstein cattle. Several papers have studied single nucleotide polymorphisms (SNPs) and their association with economic traits in dairy cows, but the combined effect of these genes has not been examined in Iranian Holstein cattle population. Blood samples were collect...

متن کامل

Studying the effects of adding CeO2 and CuO on electrical properties of lead free (Ba0.85Ca0.15)(Zr0.1Ti0.9)O3 piezoceramics

Lead-free (Ba0.85Ca0.15)[(Zr0.1Ti0.9)]O3 (BCZT) piezoceramics were synthesized using solid-state ceramic processing. In order to improve the electrical properties CeO2 and CuO additives/dopants were used and two methods were employed to introduce theses oxides; one, in which 0.1 mol.% CeO2 was mixed with the raw materials and the composition was balanced for A-site substitution (BCCe0.1ZT) and ...

متن کامل

بررسی همیافتی کانی‌های زوئیزیت و کلینوزوئیزیت در سنگ‌های دگرگون؛ مثالی از اپیدوت-آمفیبولیت‌های جنوب سلماس- شمال غرب ایران

Zoisite and clinozoisite are coexistent in the Salmas epidote- amphibolites, NW Iran. The frequency of zoisite is higher than clinozoisite in the studied epidote- amphibolites. The pistacite content of zoisite is lower than clinozoisite. XPs in zoisite is about 6.46-10.65% while for clinozoisite it is about 16.72-18.73%. Al-Fe3+ substitution was effective to create the mineral compositional cha...

متن کامل

1 Preprocessing C + + : Meta - Class Aspects

C++ satisfies the previously conflicting goals of Object-Orientation and run-time efficiency within an industrial strength language. Run-time efficiency is achieved by ignoring the meta-level aspects of Object-Orientation. In a companion paper [15] we show how extensions that replace the traditional preprocessor lexical substitution by an Object-Oriented meta-level substitution fit naturally in...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999